package com.evenmo.hrms.controller.oldController;

import com.evenmo.hrms.service.HrmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    HrmsService hrmsService;
    @PostMapping("/login")
    public String login(String loginName,String password){

        hrmsService.login(loginName,password);
        return "oldhtml/dept";

    }
}
